﻿using UnityEngine;
using System.Collections;

public class botaoFinal : MonoBehaviour {

	bool jaPassouFinal;
	
	// Use this for initialization
	void Start () {

		jaPassouFinal = false;
	}
	
	// Update is called once per frame
	void Update () {
		
	}
	
	
	
	void OnTriggerEnter2D(Collider2D other){
				
		if (!jaPassouFinal) {
			jaPassouFinal = true;
			GameObject.FindObjectOfType<moviBola> ().TocarSomVenceu ();
		}
		
	}
	
	
}
